/**
 * Created by lxh on 2018/1/8.
 */
import React,{PureComponent} from 'react';
import { Button } from 'antd';
import { Link } from 'dva/router';
import Result from '../../components/Result';
import styles from '../User/RegisterResult.less';
import {connect} from 'dva';
const title = <div className={styles.title}>审核成功</div>;

@connect(state => ({
    distributor: state.distributor
}))
export default class AuditResult extends React.Component{

    render(){
        const {id}=this.props.distributor;
        const actions = (
            <div className={styles.actions}>
                <Link to={{pathname:'/distributorManage/shopManage',state:id}}><Button size="large" type="primary">查看店铺信息</Button></Link>
                <Link to="/distributorManage/distributor"><Button size="large">返回审核界面</Button></Link>
            </div>
        );
        return (
            <Result
                className={styles.registerResult}
                type="success"
                title={title}
                description="店铺已审核通过，可点击按钮查看店铺信息"
                actions={actions}
                style={{ marginTop: 56 }}
            />
        )
    }
}
// export default () => (
//
// );
